<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class UpdatedAkbusPersonnelDriverTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('akbus_personnel_driver', function (Blueprint $table) {
            $table->date('date')->nullable()->comment('时间');
            $table->string('place')->nullable()->comment('地点');
            $table->string('reason')->nullable()->comment('原因');
            $table->string('injured_status')->nullable()->comment('处理状态');
            $table->text('description')->nullable()->comment('情况说明');
            $table->string('injured_photo_url')->nullable()->comment('图片上传');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('akbus_personnel_driver', function (Blueprint $table) {
            $table->dropColumn('date');
            $table->dropColumn('place');
            $table->dropColumn('reason');
            $table->dropColumn('status');
            $table->dropColumn('description');
            $table->dropColumn('photo_url');
        });
    }
}
